﻿<%@ Page Language="C#" MasterPageFile="~/CmsMaster.Master" AutoEventWireup="true" CodeBehind="ReportClient.aspx.cs" Inherits="ContractManagementSystem.Presentation.ReportManagement.ReportClient" Title="Report >>> Clients" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<link rel="stylesheet" type="text/css" href="../../Styles/ClientStyle.css" />

<script type = "text/javascript" language = "javascript" src = "../../JavaScript/JsLibrary.js"></script>    
<script type = "text/javascript" language = "javascript" src = "../../JavaScript/jquery.js"></script>
<script type = "text/javascript" language = "javascript" src = "../../JavaScript/menu.js"></script>

</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" runat="server">
    <div class="CPF">
        <h3 class="CPFtitle"></h3>
        <div class="CPFSearch">
           <div class="CPFclientleft">
                <asp:Label ID="Label1" runat="server">Full Name:</asp:Label>
           </div>
           <div class="CPFclientright">
                <asp:TextBox runat="server" ID="textFullName" CssClass="CPFTextBox"></asp:TextBox>
           </div>
           <div class="CPFclientleft">
                <asp:Label ID="Label2" runat="server">Company Name:</asp:Label>
           </div>
           <div class="CPFclientright">
                <asp:TextBox runat="server" ID="textCompanyName" CssClass="CPFTextBox"></asp:TextBox>
           </div>
           <div class="CPFButtonSearch">
                <asp:Button runat="server" ID="ButtonSearch" Text="Search" 
                    CssClass="CPFButton1" onclick="ButtonSearchClick"/>
                <asp:Button runat="server" ID="ButtonCreateReport" Text="Create Report" 
                    CssClass="CPFButton1" onclick="ButtonCreateReportClick" Width="97px"/>
           </div>
        </div>
        
        <div class="CPFGrid">
        <asp:ListView ID="ListViewClient" runat="server" >
            <LayoutTemplate>
                <table class="repeaterTable" >
                    <tr class="tableHeader" >
                        <td >FullName</td>        
                        <td >Company Name</td>
                        <td >Address</td>
                        <td >Phone Number</td>
                        <td >Email</td>
                    </tr>
                    <tr id="itemPlaceholder" runat="server"></tr>
                </table>
                <table class="CPFrepeaterTable" >
                    <tr class="CPFtableHeader" >
                    <td class="CPFPage">
                    <asp:DataPager runat="server" ID="ItemDataPager" PageSize="10" >
                        <Fields>
                            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowNextPageButton="false" ButtonCssClass="CPFNumPage" />
                            <asp:NumericPagerField ButtonCount="5" CurrentPageLabelCssClass="CPFCurrentNumPage" NumericButtonCssClass="CPFNumPage"/>
                            <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="false" ButtonCssClass="CPFNumPage"/>
                        </Fields>                    
                    </asp:DataPager>   
                    </td>
                    </tr>             
                </table>

            </LayoutTemplate>
            <ItemTemplate>

                <tr class="CPFTr">

                    <td class="CPFtd"><asp:Label ID="labelUserName" runat="server"><%#DataBinder.Eval(Container.DataItem, "FullName")%></asp:Label></td>
                    <td class="CPFtd"><asp:Label ID="labelCompanyName" runat="server"><%#DataBinder.Eval(Container.DataItem, "CompanyName")%></asp:Label></td>
                    <td class="CPFtd"><asp:Label ID="labelAddress" runat="server"><%#DataBinder.Eval(Container.DataItem, "Address")%></asp:Label></td>
                    <td class="CPFtd" style="width: 100px;"><asp:Label ID="labelPhoneNumber" runat="server"><%#DataBinder.Eval(Container.DataItem, "PhoneNumber")%></asp:Label></td>
                    <td class="CPFtd"><asp:Label ID="labelEmail" runat="server"><%#DataBinder.Eval(Container.DataItem, "Email")%></asp:Label></td>
           
                </tr> 
          
            </ItemTemplate>    
            <EmptyItemTemplate>
                <label style="text-align: center; font-size:15px; color:Red;">Not data</label>
            </EmptyItemTemplate>        
        </asp:ListView>
        </div>
        
        <div class="CPFResultsSearch"><asp:Label runat="server" ID="labelResultSearch"></asp:Label></div>
    </div> 
</asp:Content>
